Page({
  data: {
    PageCur: 'basics',
    openid:""
  },
  onLoad(){
  var that = this
  console.log(3333)
  wx.cloud.callFunction({
    name:'getinfo',
    success(res){
      console.log(res)
      that.setData({openid:res.result.openid})
      console.log(that.data.openid)
      wx.setStorageSync('openid', res.result.openid)
    }
  })
 
},


  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  onShareAppMessage() {
    return {
      title: '智慧医疗系统',
      imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  },
})